package com.ericsson.smart;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class TestDaoSample {

	public static void main(String[] args) {
		UtilityDimensionDAO udao = new UtilityDimensionDAO();
		List<String> ids = udao.getDistinctList("dim_time", "the_day", String.class);
		for (String id : ids)
			System.out.println(id);

		Map<String, Object> querymaMap = new HashMap<String, Object>();
		querymaMap.put("MONTH_OF_YEAR", "7");
		querymaMap.put("QUARTER", "Q3");
		List<String> cities = udao.getDynamicDistinctList("DIM_GEOGRAPHY", "WEEK_OF_YEAR",
				String.class, querymaMap, true);

		for (String id : cities)
			System.out.println(id);
	}
}
